<?
include "../xTable.php";
include "../ajaxTable.php";

$table = ajaxTable::fetchRequest();
if(!$table)
    die('{"error":"Bad request"}');
//sleep(2);
$table->setCaption("Loaded page ".$table->currentPage());
$table->setHeader("Column1", "Column2", "Column3", "Column4");
for($i=0; $i<11; $i++)
{
	$table->addRow($i, $i*$table->currentPage(), "row: $i; page: ".$table->currentPage(),"data $i");
}
//$table->enableNavigation(false);
$table->sendTable();
?>